/*
 * @Author: HeAo
 * @Date: 2021-12-27 15:54:35
 * @LastEditTime: 2021-12-27 16:35:18
 * @LastEditors: HeAo
 * @Description: 
 * @FilePath: \study\day02\8-引用数据类型.js
 * 别乱动！
 */
// 值传递
let a = 1;
let b = a;
b++;
console.log(a);


// 引用传递
let obj1 = {
  name: 'zhangsan',
  age: 12
}
let obj2 = obj1
obj2.age++;
console.log(obj1.age);

